package com.example.cheeseerpadmin.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    public static final ResultObj LOGIN_SUCCESS = new ResultObj(Constant.OK,"登录成功");
    public static final ResultObj LOGIN_ERROR_PASS = new ResultObj(Constant.ERROR_PASS,"登录失败，用户名或密码不正确");
    public static final ResultObj LOGIN_SUCCESS_CODE = new ResultObj(Constant.ERROR_CODE,"登录失败，验证码不正确");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(Constant.OK,"删除成功");
    public static final ResultObj DELETE_ERROR = new ResultObj(Constant.ERROR_PASS,"删除失败");

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(Constant.OK,"更新成功");
    public static final ResultObj UPDATE_ERROR = new ResultObj(Constant.ERROR_PASS,"更新失败");

    public static final ResultObj DISPATCH_SUCCESS = new ResultObj(Constant.OK,"分配成功");
    public static final ResultObj DISPATCH_ERROR = new ResultObj(Constant.ERROR_PASS,"分配失败");

    public static final ResultObj ADD_SUCCESS = new ResultObj(Constant.OK,"增加成功");
    public static final ResultObj ADD_ERROR = new ResultObj(Constant.ERROR_PASS,"增加失败");

    public static final ResultObj RESET_SUCCESS = new ResultObj(Constant.OK,"重置成功");
    public static final ResultObj RESET_ERROR = new ResultObj(Constant.ERROR_PASS,"重置失败");

    public static final ResultObj OPERATE_SUCCESS = new ResultObj(Constant.OK,"操作成功");
    public static final ResultObj OPERATE_ERROR = new ResultObj(Constant.ERROR_PASS,"操作失败");

    private Integer code;
    private String msg;
}
